package com.zzyl.mapper;

import com.github.pagehelper.Page;
import com.zzyl.dto.RoleDto;
import com.zzyl.entity.Role;
import com.zzyl.vo.RoleVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
* @author hesicheng
* @description 针对表【sys_role(角色表)】的数据库操作Mapper
* @createDate 2024-05-17 11:32:51
* @Entity com.zzyl.entity1.Role
*/
@Mapper
public interface RoleMapper {

    Page<Role> findRoleVoPageResponse(RoleDto roleDto);

    void createRole(Role role);

    void deleteRole(List<String> list);

    void updateRole(Role role);

    List<RoleVo> findRoleVoListInUserId(List<Long> list);


    @Select("select * from sys_role")
    List<RoleVo> selectAll();

    Long inset(Role role);
}




